package com.hzj.controller;


import com.hzj.service.FullUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import org.springframework.stereotype.Controller;

import java.util.Map;

/**
 * <p>
 * 相亲-用户表 前端控制器
 * </p>
 *
 * @author hzj
 * @since 2021-03-17
 */
@Controller
public class FullUserController {
    @Autowired
    FullUserService fus;

    @RequestMapping("/")
    public String doindex() {
        return "home";
    }

    //    @RequestMapping("/userLogin")
//    public String userLogin(@RequestParam Map map) {
//        String username = map.get("username").toString();
//        String password = map.get("password").toString();
//        System.out.println("进入userlogin:" + username + password);
//
//        return "home";
//    }
    @RequestMapping("/cg")
    @ResponseBody
    public String cg() {
        return "成功";
    }
    @RequestMapping("/admin/cg")
    @ResponseBody
    public String a() {
        return "权限成功";
    }

}

